name = "hello"
print(name)
age = 'world'
print(age)
a = 100
b = True
print(type(age))
print(type(a))
print(type(b))

# 占位符
# 格式化输出 %s 字符串
name1 = "zhang_gang"
print("my name is :%s" % name1)

# 格式化输出 %d 整数
age1 = 20
name2 = "zhang_gang"
print("my name is :%s,my age is %d" % (name2,age1))

# 格式化输出 %f 浮点数
f = 1000.00
print("f is %f" % f)

# 格式化输出 %4f 浮点数(设置小数位数)
f1 = 20.99
print("f is %.4f" % f1)

# 格式化输出 %%
print("my is %%" %())

# f格式化输出
name3 = "zhang_gang"
age3 = 20
print(f"my name is {name3},my age is {age3}")
